<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>后台控制面板--首页</title>
<link rel="stylesheet" type="text/css" href="../style/style.css" />
<link type="text/css" rel="stylesheet" href="../style/datepicker.css">
<script type="text/javascript" src="/js/jquery/lib/jquery-1.4.4.min.js"></script>
<script type="text/javascript" src="/js/jquery/ui/jquery-ui-1.8.10.custom.js"></script>
<script type="text/javascript">
<!--
$(document).ready(function(){
	//提示信息
	var msgInfo = '${msgInfo?default("")}';
	if(msgInfo != '' && msgInfo != null){
		alert(msgInfo);
	}
});
function doSign(lid){
	//if(window.confirm("您确定要签收该文件吗？")){
		$("#officialDoc_goSign").attr("action", "officialDoc_doSign.action?officialDocOrgPojo.id=" + lid);
		$("#officialDoc_goSign").submit();
	//}
}
//-->
</script>
</head>
<body class="indexbody">
<div id="Content">
  <div style="width:100%; ">
  <div urlvalue="Oasp2803" functionid="FUNC00004" urlname="公告" recordcount="5" minflg="0" class="DesktopBlock" id="FUNC00004">
  <div id="Block">
          <div id="BlockHead">
            <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
              <tbody>
                <tr valign="center">
                  <td width="5"></td>
                  <td>收文管理</td> 
                  <td width="22"></td>
                </tr>
              </tbody>
            </table>
          </div>
<form action="officialDoc_goSign.action" method="post" id="officialDoc_goSign" name="officialDoc_goSign">
          <div class="right_con">
                	<ul class="rig_nav">
                    	<li class="rig_nav_on"><a href="officialDoc_goSign.action">待办收文</a></li>
                        <li><a href="officialDoc_goSigned.action">已签收</a></li>
                        <li><a href="officialDoc_goOver.action">已办理</a></li>
                    </ul>
<ul class="tablerow3" style="height:50px;">
                      <table width="100%" border="0" cellspacing="0" cellpadding="0">
 <tr>
    <td height="34" colspan="6" align="center" valign="middle"  style="height:34px;/*background-image:url(../gif/bgd.png)*/"><span class="STYLE109">
      查询时间段：
<#assign fStartDate="">
<#if officialDocOrgPojo.startDate?exists>
<#assign fStartDate=officialDocOrgPojo.startDate?string('yyyy-MM-dd')>
</#if>
        <input  id="id_startDate" name="officialDocOrgPojo.startDate" type="text" value="${fStartDate}"  size="15" readonly="true" style="height:18px;" class="ipticon" >
      -
<#assign fEndDate="">
<#if officialDocOrgPojo.endDate?exists>
<#assign fEndDate=officialDocOrgPojo.endDate?string('yyyy-MM-dd')>
</#if>
      <input id="id_backDate" name="officialDocOrgPojo.endDate" type="text" value="${fEndDate}"  readonly="true" style="height:18px;" class="ipticon" size="15" >
        查询类型：
      
            <label>
      <select id="condType" name="officialDocOrgPojo.condType" selval="${officialDocOrgPojo.condType?default('')}">
		<#if paramMap.param1005?exists>
		<#list paramMap.param1005 as item>
			<OPTION value="${item.paramCode}">${item.paramName}</OPTION>
		</#list>
		</#if>
      </select>
&nbsp;&nbsp;查询条件：
<input name="officialDocOrgPojo.condTxt" value="${officialDocOrgPojo.condTxt?default('')}" style="height:18px;" type="text" size="12" />
            </label>
      </span><span class="STYLE109">
      <label> &nbsp;
      <input name="Submit" type=image value="开始查询" src="../images/sosuo.gif"  width=26 height=25 />
      </label>
      </span></td>
    </tr>
</table>
                    </ul>
                    
                    <div id="BlockDetail">
          <table border="0" cellpadding="1" cellspacing="1" width="100%" bgcolor="#f9f9f9">
<tbody><tr>
    <td align="center" bgcolor="#EAEAEA" width="10%">公文文号</td>
    <td height="30" align="center" bgcolor="#EAEAEA">公文标题</td>
    <td align="center" bgcolor="#EAEAEA" width="9%">发文时间</td>
    <td align="center" bgcolor="#EAEAEA" width="9%">发文部门</td>
    <td width="19%" height="30" align="center" bgcolor="#EAEAEA">操作</td>
</tr>
                                          
<#list officialDocOrgList?if_exists as doclist>
<#assign f_send_time="">
<#if doclist.officialDoc.send_time?exists>
<#assign f_send_time=doclist.officialDoc.send_time?string('yyyy-MM-dd')>
</#if>
<#assign f_org_name="">
<#if doclist.officialDoc.orgManager?exists>
<#assign f_org_name=doclist.officialDoc.orgManager.organization_name?default('')>
</#if>
<tr>
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="25">${doclist.officialDoc.doc_no?default('')}</td>
    <td height="25" bgcolor="#FFFFFF" class="STYLE10" style="padding-left:5px;"><a href="officialDoc_signView.action?officialDocOrgPojo.doc_id=${doclist.doc_id?default(0)}&officialDocOrgPojo.id=${doclist.id?default(0)}">${doclist.officialDoc.title?default('')}</a></td>
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="25">${f_send_time}</td>
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="25">${f_org_name}</td>
    <td class="STYLE10" align="center" bgcolor="#FFFFFF" height="25">
    	<#assign a=0>
    	<#assign b=0>
    	<#list allPower?if_exists as power>
    		<#if power?number == 206>
    			<#assign a=a+1>
    		</#if>
    		<#if power?number == 207>
    			<#assign b=b+1>
    		</#if>
    	</#list>
    	<#if a==0>
    		<font color="#777777">查看文件</font>
    	<#else>
    		<a href="officialDoc_signView.action?officialDocOrgPojo.doc_id=${doclist.doc_id?default(0)}&officialDocOrgPojo.id=${doclist.id?default(0)}">查看文件</a>
    	</#if>
    	<#if b==0>
    		<font color="#777777"></font>
    	<#else>
    		<a href="javascript:doSign('${doclist.id?default(0)}')"></a>
    	</#if>
    	
    	
    </td>
</tr>
</#list> 
									  </tbody></table>
                                      <div id="BlockFoot">
              <div class="left"><span class="STYLE10">第<span class="h2-red">${page}</span>页/共<span class="h2-red">${intPageCount}</span>页,总计<span class="h2-red">${intRowCount}</span>条记录</span></div>
												
<div class="right"><span class="STYLE10">
<#if page gt 1 >[<a href="javascript:goPage(1);">首页</a>]<#else> [首页]</#if>
<#if page gt 1 >[<a href="javascript:goPage(${page-1});">上一页</a>]<#else>[上一页]</#if>
<#if page lt intPageCount >[<a href="javascript:goPage(${page+1});">下一页</a>]<#else>[下一页]</#if>
<#if page lt intPageCount >[<a href="javascript:goPage(${intPageCount});">尾页</a>]<#else>[尾页]</#if>
转向<select id="page" name="page" onChange="document.officialDoc_goSign.submit();">
      <#assign p=intPageCount>
      <#if p==0>
      <option value='0' selected>1</option>
      <#else>
      <#list 1..p as j>
      <option value='${j}'
          <#if page==j>selected</#if>>${j}</option>
      </#list>
      </#if></select> 页 </span></div>
            </div>
        </div>
        </div>
</form>
          </div>
          </div>
          </div>
          </div>
   
<!--日历js-->
<script type="text/javascript" src="../js/mgtool.js"></script>
<script type="text/javascript" src="../js/DatePicker.js"></script>
<script type="text/javascript" src="../js/h_index_2012.js"></script>
<script type="text/javascript">
<!--
$(document).ready(function(){
	//初始化下拉框的值
	$("#condType").val($("#condType").attr("selval"));
});
function goPage(pageNum){
	$("#page").val(pageNum);
	document.officialDoc_goSign.submit();
}
//-->
</script>
</body>
</html>